﻿using Gp.Scripts.GUI;
using QFramework;
using UnityEngine;

namespace Gp.Scripts.Core.Controller {
    public class PauseMenuController : MonoBehaviour, IController {
        [SerializeField] private Canvas pauseUICanvas;

        private void Start() {
            // this.RegisterEvent<GamePauseEvent>(_ => ShowPauseMenu());
            // this.RegisterEvent<GameResumeEvent>(_ => HidePauseMenu());
        }

        private void HidePauseMenu() {
            pauseUICanvas.Hide();
        }

        private void ShowPauseMenu() {
            pauseUICanvas.Show();
        }


        public IArchitecture GetArchitecture() {
            return MainArchitecture.Interface;
        }
    }
}